/*
 * Bullet.cpp
 *
 *  Created on: Jun 9, 2012
 *      Author: gonzalo
 */

#include "Bullet.h"

#define BULLET_DEFAULT_IMAGE	"./resources/img/objetos/bullet.png"
#define BULLET_DEFAULT_VELOCITY 300
#define BULLET_DEFAULT_DAMAGE 10


Bullet::Bullet(int posX, int posY, Widget *parent, int angle, int duration)
:Ammo(AMMO_BULLET,posX, posY,parent, angle, duration, std::string(BULLET_DEFAULT_IMAGE),BULLET_DEFAULT_VELOCITY,BULLET_DEFAULT_DAMAGE,std::string(BULLET_DEFAULT_SOUND_EFFECT)) {
	nextX += getOffsetX() * 2.5;
	nextY -= getOffsetY() * 2.5;
}

Bullet::~Bullet() {}

